package ${package}.dto.${classname}.req;

import com.imydao.safetystandard.basic.page.req.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

<#list imports as i>
import ${i!};
<#if i?contains("java.time.")>
import java.time.format.DateTimeFormatter;
</#if>
</#list>

/**
* ${tableComment}查询参数
*
* @author ${author} ${email}
* @since ${version} ${date}
*/
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "${tableComment}")
public class ${ClassName}ListDto extends PageParam {

  /**
  * 客户id
  */
  private Long customerId;

  /**
  * 机构id
  */
  private Long enterpriseId;

<#list columnList as column>
<#if column.query>
  <#if column.columnComment!?length gt 0>
  /**
  * ${column.columnComment}
  */
  @Schema(description = "${column.columnComment}")
  </#if>
  private ${column.attrType} ${column.attrName};

</#if>
</#list>
<#list columnList as column>
<#if column.query>
  <#if column.attrType == "LocalDate">
  <#if column.columnComment!?length gt 0>
  /**
  * ${column.columnComment}mapper检索字段
  */
  </#if>
  public String get${column.attrName?cap_first}Str(){
    return this.${column.attrName} == null ? null : this.${column.attrName}.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
  }

  </#if>
  <#if column.attrType == "LocalDateTime">
  <#if column.columnComment!?length gt 0>
  /**
  * ${column.columnComment}mapper检索字段
  */
  </#if>
  public String get${column.attrName?cap_first}Str(){
    return this.${column.attrName} == null ? null : this.${column.attrName}.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
  }

  </#if>
</#if>
</#list>
}